x86/hypervisor: make hypervisor_ap_setup return an error code
authorWei Liu <liuwe@microsoft.com>
Wed, 29 Jan 2020 13:47:37 +0000 (13:47 +0000)
committerWei Liu <liuwe@microsoft.com>
Wed, 5 Feb 2020 15:55:02 +0000 (15:55 +0000)
commit5eeeddf74b62b5865f0950c4483baee5811bfadd
tree4012631ad256bb4db2b1234079276aad46e47a1c
parent2575d77a678ec3156f537b012eb5e797917d4025
x86/hypervisor: make hypervisor_ap_setup return an error code

We want to be able to handle AP setup error in the upper layer.

For Xen, remove all panic() and BUG_ON() in init_evtchn and
map_vcpuinfo. Only panic/BUG_ON when Xen can't fail gracefully.

Signed-off-by: Wei Liu <liuwe@microsoft.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/guest/hypervisor.c
xen/arch/x86/guest/xen/xen.c
xen/include/asm-x86/guest/hypervisor.h